package com.mayblackcat.amoy.coupon;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * @author mayblackcat
 *
 * @RefreshScope:实现nacos配置自动更新
 * @EnableDiscoveryClient：开启服务注册发现功能
 */
@MapperScan("com.mayblackcat.amoy.coupon.dao")
@SpringBootApplication
@EnableDiscoveryClient
@RefreshScope
public class AmoyCouponApplication {

    public static void main(String[] args) {
        SpringApplication.run(AmoyCouponApplication.class, args);
    }

}
